package com.zhixianggou.caibaobox.user.shiro.tokens;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author 文心雕龙 Email: xuwenlong@shike8888.com
 * @version 创建时间: 2019 年 09 月 16 日 下午7:02
 * 类说明:
 */
public class CustomizedToken extends UsernamePasswordToken {

    /**
     * 登录类型
     */
    private String loginType;

    public CustomizedToken(String loginType, final String username, final String password) {
        super(username, password);
        this.loginType = loginType;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    @Override
    public String toString() {
        return "loginType=" + loginType + ",username=" + super.getUsername() + ",password=" + String.valueOf(super.getPassword());
    }
}
